<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>自定义菜单</title>
    <link rel="stylesheet" href="__PUBLIC__/css/person.css">
    <script src="__PUBLIC__/dpa/js/jquery-2.1.4.js"></script>
    <style>
        button{
            margin-left:50px;
            margin-top:50px;
        }
    </style>
</head>
<body>
<!--加载导航条开始-->
<div class="nav-bar">
    <ul>
        <li class="on"><a href="{:U('Home/Index/menu')}">自定义菜单</a></li>
        <li class="in"><a href="{:U('Home/Upload/upload')}">上传excel</a></li>
        <li class="in"><a href="{:U('Home/Index/unit')}">单位信息管理</a></li>
        <li class="in"><a href="{:U('Home/Index/personnel')}">人员信息管理</a></li>
        <li class="in"><a href="{:U('Home/Index/schedule')}">数据管理</a></li>
        <li class="in"><a href="{:U('Home/Index/connect')}">交接数据管理</a></li>
        <li  style="background:darkcyan"> <a href="{:U('Home/Index/changepass')}">更改密码</a></li>
        <li style="background:grey"><a href="{:U('Home/Index/unlogin')}">退出登录</a></li>
    </ul>
</div>
<!--加载导航条结束-->

<div class="right-container">
    <h1>菜单管理</h1>
    <p class="warn">不需要设计的菜单留空就可以！</p>
    <table border="1" class="lianjie">
        <form method="post" action="">
            <tr>
                <th>序号</th> <th>一级菜单</th> <th>子菜单</th>
            </tr>
            <tr>
                <th>菜单一:</th>
                <td>
                    <input type="text" size="10"   name="button_0" readonly="readonly"  value="{$menu[0].name}">
                    <!--<input type="radio" name="type_0"   value="url"> 	链接 <br>-->
                    <input type="radio" name="type_0"  value="key"   checked> 模拟关键字<br>
                    <input type="text" name="urlkey_0"  readonly="readonly" value="<?php echo $menu[0]['key']; ?>" size="30">
                </td>
                <td>
                    <p>
                        1 名称: <input type="text" class="name" size="10" name="sub_button_0_0" readonly="readonly"  value=""> &nbsp;
                        <input type="radio" name="type_0_0"  checked value="url"> 链接 &nbsp;
                        <!--<input type="radio" name="type_0_0" class="key" style="width:15px" value="key"> 模拟关键字  &nbsp;-->
                        <input type="text" name="urlkey_0_0" class="url" readonly="readonly" value=""  size="30">
                    </p>
                    <p>
                        2  名称: <input type="text" size="10" class="name" name="sub_button_0_1" readonly="readonly"  value=""> &nbsp;
                        <input type="radio" name="type_0_1"  checked value="url"> 	链接 &nbsp;
                        <!--<input type="radio" name="type_0_1" class="key"  value="key"> 模拟关键字  &nbsp;-->
                        <input type="text" name="urlkey_0_1" class="url"  readonly="readonly" value=""  size="30">
                    </p>


                    <p>
                        3  名称: <input type="text" size="10" class="name" name="sub_button_0_2" readonly="readonly"  value=""> &nbsp;
                        <input type="radio" name="type_0_2"  checked value="url"> 	链接 &nbsp;
                        <!--<input type="radio" name="type_0_2" class="key" value="key"> 模拟关键字  &nbsp;-->
                        <input type="text" name="urlkey_0_2" class="url" readonly="readonly"  value=""  size="30">
                    </p>


                    <p>
                        4   名称: <input type="text" size="10" class="name" name="sub_button_0_3" readonly="readonly"  value=""> &nbsp;
                        <input type="radio" name="type_0_3"  checked value="url"> 	链接 &nbsp;
                        <!--<input type="radio" name="type_0_3" class="key" value="key"> 模拟关键字  &nbsp;-->
                        <input type="text" name="urlkey_0_3" class="url" readonly="readonly"   value=""  size="30">
                    </p>

                    <p>
                        5  名称: <input type="text" size="10" class="name" name="sub_button_0_4" readonly="readonly"  value=""> &nbsp;
                        <input type="radio" name="type_0_4"   value="url"> 	链接 &nbsp;
                        <!--<input type="radio" name="type_0_4" class="key" value="key"> 模拟关键字  &nbsp;-->
                        <input type="text" name="urlkey_0_4" class="url" readonly="readonly" value=""  size="30">
                    </p>
                </td>
            </tr>
            </foreach>
            <tr>
                <th>菜单二:</th>
                <td>
                    <input type="text" size="10" name="button_1" value="{$menu[1].name}">
                    <!--<input type="radio" name="type_1" value="url"> 	链接 <br>-->
                    <input type="radio" name="type_1" checked value="key"> 模拟关键字<br>
                    <input type="text" name="urlkey_1" readonly="readonly" size="30" value="" >
                </td>
                <td>
                    <p>
                        1 名称: <input type="text" size="10" class="name"  name="sub_button_1_0" value="{$menu[1][sub_button][0][name]}"> &nbsp;
                        <input type="radio" name="type_1_0" checked value="url"> 链接 &nbsp;
                        <!--<input type="radio" name="type_1_0" class="key" value="key"> 模拟关键字  &nbsp;-->
                        <input type="text" name="urlkey_1_0" class="url"   value="{$menu[1][sub_button][0][url]}"  size="30">
                    </p>


                    <p>
                        2  名称: <input type="text" size="10" class="name" name="sub_button_1_1" value="{$menu[1][sub_button][1][name]}"> &nbsp;
                        <input type="radio" name="type_1_1" checked value="url"> 	链接 &nbsp;
                        <!--<input type="radio" name="type_1_1" class="key" value="key"> 模拟关键字  &nbsp;-->
                        <input type="text" name="urlkey_1_1"  class="url"  value="{$menu[1][sub_button][1][url]}"  size="30">
                    </p>


                    <p>
                        3  名称: <input type="text" size="10" class="name" name="sub_button_1_2" value="{$menu[1][sub_button][2][name]}"> &nbsp;
                        <input type="radio" name="type_1_2" checked value="url"> 	链接 &nbsp;
                        <!--<input type="radio" name="type_1_2" class="key" value="key"> 模拟关键字  &nbsp;-->
                        <input type="text" name="urlkey_1_2" class="url"   value="{$menu[1][sub_button][2][url]}"  size="30">
                    </p>


                    <p>
                        4   名称: <input type="text" size="10" class="name" name="sub_button_1_3" value="{$menu[1][sub_button][3][name]}"> &nbsp;
                        <input type="radio" name="type_1_3" checked value="url"> 	链接 &nbsp;
                        <!--<input type="radio" name="type_1_3" class="key" value="key"> 模拟关键字  &nbsp;-->
                        <input type="text" name="urlkey_1_3" class="url"   value="{$menu[1][sub_button][3][url]}"  size="30">
                    </p>

                    <p>
                        5  名称: <input type="text" size="10" class="name" name="sub_button_1_4" value="{$menu[1][sub_button][4][name]}"> &nbsp;
                        <input type="radio" name="type_1_4" checked value="url"> 	链接 &nbsp;
                        <!--<input type="radio" name="type_1_4" class="key" value="key"> 模拟关键字  &nbsp;-->
                        <input type="text" name="urlkey_1_4" class="url"   value="{$menu[1][sub_button][4][url]}"  size="30">
                    </p>
                </td>
            </tr>
            <tr>
                <th>菜单三:</th>
                <td>
                    <input type="text" size="10" name="button_2" value="{$menu[2].name}">
                    <!--<input type="radio" name="type_2" value="url"> 	链接 <br>-->
                    <input type="radio" name="type_2" class="key" checked value="key"> 模拟关键字<br>
                    <input type="text" name="urlkey_2" readonly="readonly" size="30" value="" >
                </td>
                <td>
                    <p>
                        1 名称: <input type="text" size="10" class="name" name="sub_button_2_0" value="{$menu[2][sub_button][0][name]}"> &nbsp;
                        <input type="radio" name="type_2_0" checked  value="url"> 链接 &nbsp;
                        <!--<input type="radio" name="type_2_0" class="key" value="key"> 模拟关键字  &nbsp;-->
                        <input type="text" name="urlkey_2_0"  class="url"  value="{$menu[2][sub_button][0][url]}"  size="30">
                    </p>


                    <p>
                        2  名称: <input type="text" size="10" class="name" name="sub_button_2_1" value="{$menu[2][sub_button][1][name]}"> &nbsp;
                        <input type="radio" name="type_2_1"  checked value="url"> 	链接 &nbsp;
                        <!--<input type="radio" name="type_2_1" class="key" value="key"> 模拟关键字  &nbsp;-->
                        <input type="text" name="urlkey_2_1" class="url"   value="{$menu[2][sub_button][1][url]}"  size="30">
                    </p>


                    <p>
                        3  名称: <input type="text" size="10" class="name" name="sub_button_2_2" value="{$menu[2][sub_button][2][name]}"> &nbsp;
                        <!--<input type="radio" name="type_2_2" checked value="url"> 	链接 &nbsp;-->
                        <input type="radio" name="type_2_2" class="key" checked value="key"> 关键字  &nbsp;
                        <input type="text" name="urlkey_2_2" class="url" readonly="readonly"  value="{$menu[2][sub_button][2][key]}"  size="30">
                    </p>


                    <p>
                        4   名称: <input type="text" size="10" class="name" name="sub_button_2_3" value="{$menu[2][sub_button][3][name]}"> &nbsp;
                        <input type="radio" name="type_2_3" checked  value="url"> 	链接 &nbsp;
                        <!--<input type="radio" name="type_2_3" class="key"value="key"> 模拟关键字  &nbsp;-->
                        <input type="text" name="urlkey_2_3"  class="url"  value="{$menu[2][sub_button][3][url]}"  size="30">
                    </p>

                    <p>
                        5  名称: <input type="text" size="10" readonly="readonly" class="name" name="sub_button_2_4" value="{$menu[2][sub_button][4][name]}"> &nbsp;
                        <input type="radio" name="type_2_4" checked value="url"> 	链接 &nbsp;
                        <!--<input type="radio" name="type_2_4" value="key"> 模拟关键字  &nbsp;-->
                        <input type="text" name="urlkey_2_4" readonly="readonly" class="url" value="{$menu[2][sub_button][4][url]}"  size="30">
                    </p>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="center"><br><input type="submit" name="do_submit" value="设置菜单" class="bottom-btn"><br></td>
            </tr>
        </form>
    </table>
</div>

</body>

</html>